import request from '@/utils/request'

// 删除
export function deleteInformation(data) {
  return request({
    url: '/driverInformation/delete',
    method: 'POST',
    data
  })
}

// 司机信息单条修改
export function updateInformation(data) {
  return request({
    url: '/driverInformation/update',
    method: 'post',
    data
  })
}

// 司机信息单条查询
export function selectInformation(params) {
  return request({
    url: '/driverInformation/load',
    method: 'POST',
    params
  })
}

// 司机信息分页
export function getList(params) {
  return request({
    url: '/driverInformation/list',
    method: 'POST',
    params
  })
}

// 司机信息添加
export function addInformation(data) {
  return request({
    url: '/driverInformation/add',
    method: 'post',
    data
  })
}
